package CasosPrueba;

import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.regex.Pattern;

public class CasoPrueba002 extends SeleneseTestCase {
	@Before
	public void setUp() throws Exception {
		selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://127.0.0.1/");
		selenium.start();
	}

	@Test
	public void testCasoPrueba002() throws Exception {
		selenium.open("/wordpress/wp-admin/users.php");
		selenium.click("xpath=(//a[contains(text(),'Añadir nuevo')])[4]");
		selenium.waitForPageToLoad("30000");
		selenium.type("id=first_name", "Julian");
		selenium.type("id=last_name", "Ospina");
		selenium.click("id=createusersub");
	}

	@After
	public void tearDown() throws Exception {
		selenium.stop();
	}
}

